package com.hema.auction.bean;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * 描述:系统配置项
 * 作者:john
 */
public class SysUnits implements Serializable {
    private static final long serialVersionUID = -4640804495116289679L;

    /**
     * id : 7
     * tab : banner_home
     * desc : 主页banner图ad_id
     * value : 2
     */

    @SerializedName("id")
    private String id;
    @SerializedName("tab")
    private String tab;
    @SerializedName("desc")
    private String desc;
    @SerializedName("value")
    private String value;
    /**
     * title : 华为P10
     * img : http://shanpai.51cnb.xin//uploads/ad/4389952561369.jpg
     * url : www.123.com
     * tag : 2
     */

    @SerializedName("title")
    private String title;
    @SerializedName("img")
    private String img;
    @SerializedName("url")
    private String url;
    @SerializedName("tag")
    private String tag;
    @SerializedName("url_type")
    private int urlType;//1跳H5，2跳详情，3跳充值

    public static SysUnits objectFromData(String str) {

        return new Gson().fromJson(str, SysUnits.class);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTab() {
        return tab;
    }

    public void setTab(String tab) {
        this.tab = tab;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public int getUrlType() {
        return urlType;
    }

    public void setUrlType(int urlType) {
        this.urlType = urlType;
    }
}
